
#pragma once
#ifndef __ConfigManager_H__
#define __ConfigManager_H__


#include <vector>
#include <string>

class ConfigManager
{
public:
    ConfigManager();
    ~ConfigManager();

public:
    bool load(const std::string& cfgFile);
	bool load_buffer(const std::string& cfgFile);
public:
    virtual uint32_t GetInt(const std::string& key, uint32_t defValue = 0);
    virtual std::string GetString(const std::string& key, const std::string& defValue = "");

    virtual std::vector<uint32_t> GetIntArray(const std::string& key);
    virtual std::vector<std::string> GetStringArray(const std::string& key);

protected:
	void*  mNode;
};

#endif // !__CONFIG_H__

